﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CRM.Web.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理系统登录</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="/style/index.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/JS/jquery-1.4.1.min.js"></script>
    <script type="text/javascript">
        function fo() {
            document.admin_form.username.focus();
        }
        function check() {
            if (document.admin_form.username.value == "") {
                alert("请填写登录帐号!!");
                admin_form.username.focus();
                return false;
            }
            if (document.admin_form.password.value == "") {
                alert("请填写登录密码!!");
                admin_form.password.focus();
                return false;
            }
            if (document.admin_form.valcode.value == "") {
                alert("验证码不能为空!!");
                admin_form.valcode.focus();
                return false;
            }
        }
        function resetBtn(fm) {
            fm.reset();
            return false;
        }
        function change_image() {
            $("#img_validate").attr("src", "ValidateCode.aspx?" + Math.random());
        }
</script>
    <script type="text/javascript">
        function fo() {
            document.admin_form.password.focus();
        }
        if (top.location !== self.location) {
            top.location = self.location;
        }
</script>
</head>
<body onload="fo()">
    <div id="body1">
        <div id="box1_fj">
        </div>
        <div id="box1">
            <font color="#FF0000"><b><font color="#ff0000"></font>
                <br>
            </b></font>
        </div>
        <div id="box2">
        </div>
        <div id="box3">
            <div id="x1">
            </div>
            <div id="x2">
                <div id="a1">
                    <%--<form name="admin_form" action="./images/test.htm" method="post" onsubmit="return check()"
                    target="_parent">--%>
                    <form runat="server">
                    <table width="245" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td width="63" height="35" nowrap="nowrap">
                                    <div align="right">
                                        <span class="style1">登录帐号：</span></div>
                                </td>
                                <td width="237" height="30" align="left">
                                    &nbsp;<input name="username" id="username" runat="server" type="text" class="from_txt" />
                                </td>
                            </tr>
                            <tr>
                                <td height="35">
                                    <div align="right">
                                        <span class="style1">登录密码：</span></div>
                                </td>
                                <td height="30" align="left">
                                    &nbsp;<input name="password" type="password" runat="server" id="password" class="from_txt" />
                                </td>
                            </tr>
                            <tr>
                                <td height="35" nowrap="nowrap">
                                    <div align="right">
                                        <span class="style1">验证码：</span></div>
                                </td>
                                <td height="30" nowrap="nowrap" align="left">
                                    <table width="90%" border="0" cellspacing="0" cellpadding="0">
                                        <tbody>
                                            <tr>
                                                <td width="28%">
                                                    &nbsp;<input name="valcode" id="valcode" type="text" runat="server" class="input_val" size="4" maxlength="4" />
                                                </td>
                                                <td width="72%">
                                                    <%--&nbsp;<asp:Image ID="Image_ValidateCode" runat="server" ImageUrl="~/ValidateCode.aspx" AlternateText="看不清?换一张" />--%>
                                                    &nbsp;<img src="/ValidateCode.aspx" id="img_validate" onclick="change_image()" style="cursor:pointer;" alt="看不清?换一张" />
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="35" nowrap="nowrap">
                                    &nbsp;
                                </td>
                                <td height="30" nowrap="nowrap">
                                    <asp:Button ID="btn_submit" runat="server" Text="" CssClass="btn_submit" BorderStyle="None" Width="127" Height="31"
                                        
                                        onclick="btn_submit_Click" />
                                   <%-- <input name="imageField" onclick="LoginPage" type="image" src="./images/login.gif" runat="server" width="127" height="31" border="0" style="cursor: hand" alt="登陆">
                                    <input type="hidden" value="1" name="i" />--%>
                                    
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    </form>
                </div>
                <div id="a2" style="text-align: left;color: red">
                <asp:Literal ID="lit_msg" runat="server"></asp:Literal>
                </div>
            </div>
            <div id="x3">
            </div>
        </div>
    </div>
</body>
</html>
